package board;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;

import dto.pensionBoard;
import interceptor.IbatisAware;

public class serchAction extends ActionSupport implements Preparable, ModelDriven, IbatisAware  {
	
	public SqlMapClient sqlMapper;
	private pensionBoard paramClass;
	
	public String execute() throws Exception{
		
		System.out.println("paramClass.getPb_category : "+ paramClass.getPb_category());
		System.out.println("paramClass.getPen_num : "+ paramClass.getPen_num());
		
		return SUCCESS;
	}
	
	
	
	
	public SqlMapClient getSqlMapper() {
		return sqlMapper;
	}




	public void setSqlMapper(SqlMapClient sqlMapper) {
		this.sqlMapper = sqlMapper;
	}




	public pensionBoard getParamClass() {
		return paramClass;
	}




	public void setParamClass(pensionBoard paramClass) {
		this.paramClass = paramClass;
	}




	@Override
	public void setIbatis(SqlMapClient sqlMapper) {
		// TODO Auto-generated method stub
		this.sqlMapper = sqlMapper;
	}

	@Override
	public Object getModel() {
		// TODO Auto-generated method stub
		return paramClass;
	}

	@Override
	public void prepare() throws Exception {
		// TODO Auto-generated method stub
		paramClass = new pensionBoard();
	}

}
